home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_09
/
8n09016a
< prev
next >
Wrap
Text File
|
1990-08-11
|
417b
|
23 lines
/* assert.h standard header
* copyright (c) 1990 by P.J. Plauger
*/
#undef assert /* remove any previous definition */
#ifdef NDEBUG
#define assert(test) ((void)0)
#else /* NDEBUG not defined */
void _Assert(char *);
#ifndef _STR /* define stringize macro just once */
#define _STR(x) #x
#endif
#define assert(test) ((test) || \
_Assert(__FILE__ ":" _STR(__LINE__) " " #test))
#endif